package com.xuexi.demos.entity.DTO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AIDetectionResultDTO {
    private String objectKey;
    private List<DetectionItem> detections;
    private Long inferenceTimeMs; // ✅ 新增字段
    private String timestamp; // ✅ 新增字段
    private String device;

    @Data
    public static class DetectionItem {
        private String className;
        private Double confidence;
    }
}